
##Executes events if character is fielded.
IFUF, 0x57, 12, -game:FE7 -indexMode:8
	Unknown, 2, 2	
	Conditional ID, 4, 2
##Character to check.
	Character, 8, 2

#Chapters: 3
##Executes events if character isn't active.
IFCNA, 0x24, 12, -game:FE6 -indexMode:8
	Conditional ID, 4, 4
##Character to check.
	Character, 8, 4

##Executes events if character is active.
IFCA, 0x4E, 12, -game:FE7 -indexMode:8
	Unknown, 2, 2
	Conditional ID, 4, 4
##Character to check.
	Character, 8, 2
	
##Executes events if character is dead.
IFCD, 0x55, 16, -game:FE7 -indexMode:8
	Conditional ID, 4, 2
##Character to check.
	Character, 8, 2
	0, 12, 2, -fixed

IFCD, 0x55, 16, -game:FE7 -indexMode:8
	Conditional ID, 4, 2
	Character, 8, 2
##Unknown parameter, usually 0.
	Dunno, 12, 2

#Stores the character ID of the "active" charcter (for villages, AREA events,etc) to memory slot 0xC.
CHECK_ACTIVE, 0x2E21, 4, -game:FE8 -indexMode:8

#Following commands check various things about a selected unit.
#Like all unit-targeting commands in FE8, special inputs are:
# 0xFFFF: checks active unit (currently selected for moving/attacking)
# 0xFFFE: checks unit at coordinates stored to Memory slot 0xB
# 0xFFFD: checks unit of ID stored to Memory slot 0x2

#Results of these commands are stored to Memory Slot 0xC.
#Returns true if this character exists anywhere, alive or dead.
CHECK_EXISTS, 0x3320, 4, -game:FE8 -indexMode:8
	Character, 2, 2

#Returns status effect unit is experiencing, if any
CHECK_STATUS, 0x3321, 4, -game:FE8 -indexMode:8
	Character, 2, 2

CHECK_ALIVE, 0x3322, 4, -game:FE8 -indexMode:8
	Character, 2, 2

#Also checks if the unit is alive
CHECK_DEPLOYED, 0x3323, 4, -game:FE8 -indexMode:8
	Character, 2, 2

#Check if the active character has the same character ID as the parameter.
CHECK_ACTIVEID, 0x3324, 4, -game:FE8 -indexMode:8
	Character, 2, 2

#Returns 0x0 for a player character, 0x2 for an enemy, 0x1 otherwise
CHECK_ALLEGIANCE, 0x3325, 4, -game:FE8 -indexMode:8
	Character, 2, 2

#Store the result to slot 0xC.
CHECK_COORDS, 0x3326, 4, -game:FE8 -indexMode:8
	Character, 2, 2

CHECK_CLASS, 0x3327, 4, -game:FE8 -indexMode:8
	Character, 2, 2

CHECK_LUCK, 0x3328, 4, -game:FE8 -indexMode:8
	Character, 2, 2
